<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>图纸列表</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" th:href="@{/css/pure/pure-min.css}" />
<!--[if lte IE 8]>
   <link rel="stylesheet" href="https://unpkg.com/purecss@0.6.1/build/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
    <link rel="stylesheet" th:href="@{/css/pure/grids-responsive-min.css}" />
<!--<![endif]-->
</head>
<body>
<a class="pure-button pure-button-primary" href="/api/drawing/form">新增</a>
<table class="pure-table pure-table-bordered" style="width:100%">
			<thead>
				<tr>
					<td>序号</td>
					<td>名称</td>
					<td>缩写</td>
					<td>类型</td>
					<td>备注</td>
					<td>二维码</td>
				</tr>
			</thead>
			<tbody>
				<tr th:each="item, itemStat:${items}" th:class="${itemStat.odd}?'pure-table-odd'">
					<td th:text="${itemStat.index+1}"></td>
					<td th:text="${item.name}"></td>
					<td th:text="${item.abbreviation}"></td>
					<td th:switch="${item.type}">
						<span th:case="1">机电</span>
						<span th:case="2">工程</span>
						<span th:case="3">其它</span>
					</td>
					<td th:text="${item.remark}"></td>
					<td><a href="" th:href="@{|/api/drawing${item.path}|}">查看</a></td>
				</tr>
			</tbody>
		</table>
</body>
</html>